
# 回到根目录
cd ..  
./node_modules/.bin/webpack 

rm -rf ./packoutput/*

cp -r ./config ./packoutput
cp -r ./https ./packoutput
cp -r ./node_modules ./packoutput
cp -r ./output ./packoutput
rm -rf ./public/*
cp -r ./public ./packoutput
mv  ./bundle.js ./packoutput
cp  ./package-lock.json ./packoutput
cp  ./package.json ./packoutput


packname=share-webserver

mv packoutput $packname

zip -q -r $packname.zip $packname

mv $packname packoutput

mv $packname.zip ./packoutput

echo "打包 suc===="